package loki
Import Path
github.com/K-Phoen/grabana/target/loki (on go.dev)
Dependency Relation
imports 0 packages, and imported by 2 packages
Involved Source Files
loki.go
Package-Level Type Names (total 2)
Loki represents a loki query.
Expr string
Hidden bool
LegendFormat string
Ref string
func New(query string, options ...Option) *Loki
Option represents an option that can be used to configure a loki query.
func Hide() Option
func Legend(legend string) Option
func Ref(ref string) Option
func New(query string, options ...Option) *Loki
func github.com/K-Phoen/grabana/logs.WithLokiTarget(query string, options ...Option) logs.Option
func github.com/K-Phoen/grabana/timeseries.WithLokiTarget(query string, options ...Option) timeseries.Option
Package-Level Functions (total 4)
Hide the query. Grafana does not send hidden queries to the data source,
but they can still be referenced in alerts.
Legend sets the legend format.
New creates a new prometheus query.
Ref sets the reference ID for this query.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |